<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改订单明细')"/>
                                                                                                                                                                                                                                                                                                                                                </head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-orderitem-edit" th:object="${ordersItem}">
                <input name="id" th:field="*{id}" type="hidden">
                                                                                                                                            <div class="form-group">
                            <label class="col-sm-3 control-label">订单编号
                                ：</label>
                            <div class="col-sm-8">
                                <input name="orderNo" th:field="*{orderNo}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">产品ID
                                ：</label>
                            <div class="col-sm-8">
                                <input name="productId" th:field="*{productId}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片
                                ：</label>
                            <div class="col-sm-8">
                                <input name="productImg" th:field="*{productImg}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">规格
                                ：</label>
                            <div class="col-sm-8">
                                <input name="productUnit" th:field="*{productUnit}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">单价
                                ：</label>
                            <div class="col-sm-8">
                                <input name="productPrice" th:field="*{productPrice}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">名称
                                ：</label>
                            <div class="col-sm-8">
                                <input name="productName" th:field="*{productName}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">数量
                                ：</label>
                            <div class="col-sm-8">
                                <input name="productNum" th:field="*{productNum}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                                                                                                                        <div class="form-group">
                            <label class="col-sm-3 control-label">总额
                                ：</label>
                            <div class="col-sm-8">
                                <input name="productAmount" th:field="*{productAmount}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                                                                    </form>
</div>
<th:block th:include="include :: footer"/>
                                                                                                                                                                                                                                                                                                                                                <script th:inline="javascript">
    var prefix = ctx + "system/orderitem";
            $("#form-orderitem-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-orderitem-edit').serialize());
        }
    }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    </script>
</body>
</html>